package com.yanqu.road.server.cmd.activity.horserun.fromcross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.HorseRunProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.horserun.HorseRunActivityModule;
import com.yanqu.road.server.protocol.GameProtocol;

@Cmd(code = GameProtocol.S_HORSE_RUN_UPDATE_CONDITION_RESP,desc = "玩家更新商会成就返回游戏服")
public class HorseRunCrossUpdateUserConditionToGameCmd extends AbstractCommand {

    HorseRunProto.CrossUserUpdateConditionToGame resp;

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        resp = HorseRunProto.CrossUserUpdateConditionToGame.parseFrom(packet.getBytes());
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        player.getModule(HorseRunActivityModule.class).updateUnionConditionCrossResp(resp);
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
